#!/usr/bin python3
# -*- coding: utf-8 -*-
"""  用户信息表定义文件   """
from sqlalchemy import Column, String
from gtm_server.common.database_pg import Base

class UserModel(Base):
    """
    用户数据表
    """
    __tablename__ = "users"

    id = Column("id", String(255), primary_key=True)
    name = Column("name", String(255))
    account = Column("account", String(255))
    password = Column("password", String(255))
    part = Column("part", String(255))
    company = Column("company", String(255))
    title = Column("title", String(255))

    def __init__(self, id, name, account, password, part, company, title):
        self.id = id
        self.name = name
        self.account = account
        self.password = password
        self.part = part
        self.company = company
        self.title = title